package com.tjhzzx.hnceCore2024.model.table;

import com.tjhzzx.hnceCore2024.enums.BDataTableCellType;
import com.tjhzzx.hnceCore2024.model.dashboard.BBaseChart;

import javax.baja.naming.BOrd;
import javax.baja.sys.Flags;
import javax.baja.sys.Property;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;

/**
 * @author Luc
 * @version 1.0
 * @date 2024-08-01 14:50
 */
public class BTableCell extends BBaseChart {

    public BTableCell() {
        setTitle("TableCell#");
    }

    public static final Property tableCellType = newProperty(0, BDataTableCellType.DEFAULT, null);

    public BDataTableCellType getTableCellType() {
        return (BDataTableCellType) get(tableCellType);
    }

    public void setTableCellType(BDataTableCellType v) {
        set(tableCellType, v, null);
    }

    public static final Property realtimeOrd = newProperty(0, BOrd.DEFAULT, null);
    public BOrd getRealtimeOrd() {
        return (BOrd) get(realtimeOrd);
    }
    public void setRealtimeOrd(BOrd v) {
        set(realtimeOrd, v, null);
    }

    public static final Property tableCellTypeExpose = newProperty(Flags.HIDDEN, BDataTableCellType.expose(), null);

    public String getTableCellTypeExpose() {
        return getString(tableCellTypeExpose);
    }

    public void setTableCellTypeExpose(String v) {
        setString(tableCellTypeExpose, v, null);
    }

    @Override
    public Type getType() {
        return TYPE;
    }

    public static final Type TYPE = Sys.loadType(BTableCell.class);
}
